<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of OrderListModel
 *
 * @author admin
 */
namespace Home\Model;
use Think\Model\ViewModel;
class OrderViewModel extends Model{
    //put your code here
    public $viewFields = array(
     'Order_goods'=>array('orderid','pid','price','cartnum','totalprice'),
     'Order'=>array('orderid'=>'orderid', '_on'=>'Order_goods.orderid=Order.orderid'),
   );
}
